/**
 *
 */
package soa.security.rs;

import soa.security.domain.Department;
import soa.security.exception.OrganizationException;

import javax.ws.rs.*;
import javax.ws.rs.core.MediaType;

/**
 * @author CreGu
 */
@Path("/DepartmentService")
@Produces({"application/json;charset=UTF-8", MediaType.APPLICATION_XML})
public interface DepartmentService {

    /**
     * 获取指定部门信息
     *
     * @param organizationId
     * @param departmentId
     * @return
     * @throws OrganizationException
     */
    @GET
    @Path("getDepartment")
    Department getDepartment(
            @QueryParam("organizationId") String organizationId,
            @QueryParam("departmentId") String departmentId)
            throws OrganizationException;
}
